package cc.comac.mom.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.EquipDevAppendService;
import cc.comac.mom.bean.EquipDevAppend;
import cc.comac.mom.bean.EquipDevAppendBean;

@RestController
@RequestMapping(value ="/EquipDevAppend")
public class EquipDevAppendController {

	@Autowired
	private EquipDevAppendService equipDevAppendService;
	@RequestMapping(value = "/save",method = RequestMethod.POST)
	public Object save(@RequestBody EquipDevAppend obj) {
		
		return equipDevAppendService.save(obj);
		
	}
	
	@RequestMapping(value = "/update",method = RequestMethod.POST)
	public Object update(@RequestBody EquipDevAppend obj) {
		
		return equipDevAppendService.update(obj);
		
	}
	
	@RequestMapping(value = "/delete",method = RequestMethod.POST)
	public Object delete(@RequestBody EquipDevAppend obj) {
		
		return equipDevAppendService.delete(obj);
		
	}
	
	@RequestMapping(value = "/getById",method = RequestMethod.POST)
	public EquipDevAppend getById(@RequestBody EquipDevAppend obj) {
		return equipDevAppendService.getById(obj);
		
	}
	
	@RequestMapping(value = "/selectByCondition",method = RequestMethod.POST)
	public EquipDevAppendBean selectByCondition(@RequestBody EquipDevAppend obj) {
		return equipDevAppendService.selectByCondition(obj);
		
	}
}
